package com.xd.comment2.service;

import com.xd.comment2.entity.Comment;

import java.util.List;
import java.util.Map;

public interface Service {
    //查询
    List<Comment> FindAll();

    //根据id查询
    Comment findById(String id);

    //添加
    Comment saveComment(Comment comment);

    //修改
    void updateComment(String id,String idcode,String content,String name);

    //根据id删除
    void deleteCommentById(String id);

    //分页查询
    List<Comment> page(String parentid,int page,int size);

    Map<String, Object> fun7();
}
